<html>
<head>
    <title>Add url to UrlDiff Monitor</title>
</head>
<body>
    <div>
        <iframe id="myIFrame" width="700px" height="250px" frameborder="0"></iframe>
    </div>
    <script type="text/javascript">
        chrome.tabs.getSelected(null, function (tab) {
            OpenUrlDiffMon(tab.url);
        });         
    </script>
    <script type="text/javascript">
        function OpenUrlDiffMon(currentUrl) {
            //var currentUrl = chrome.extension.getBackgroundPage().currentUrl;   // does not work. Sometimes the background page does not update the url
            myIFrame.location.href = "http://urldiff.appspot.com/uc/addurlsmart.jsp?url=" + escape(currentUrl);
        }
    </script>
</body>
</html>
